home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1994 December
/
PSL Monthly Shareware CD-ROM (Public Software Library)(December 1994).bin
/
prgmming
/
dos
/
asm
/
macro.inc
< prev
next >
Wrap
Text File
|
1984-08-27
|
768b
|
34 lines
SUBTTL MACRO DEFINITIONS
page
;
DOSCALL MACRO FUNCTION,AREA ;INVOKE DOS SERVICE
IFNB <AREA>
MOV DX,OFFSET AREA ;SET PARAMETER OFFSET
ENDIF
MOV AH,FUNCTION ;DOS FUNCTION CODE
INT 21H ;INVOKE DOS SERVICE
ENDM
;
PRCHAR MACRO CHAR ;PRINT A CHARACTER
IFNB <CHAR>
MOV DL,CHAR ;CHAR TO DL REG
ENDIF
DOSCALL DSPLO ; DOS PRINT CHARACTER FUNCTION
ENDM
;
SCROLL MACRO
MOV AX,600H ;AH=6 SCROLL, AL=0 ENTIRE WINDOW
INT 10H ;INVOKE BIOS SCROLL ROUTINE
ENDM
;
LOCATE MACRO
MOV AH,2 ;BIOS FUNCTION SELECT
MOV BH,0 ;USE SCREEN 0
INT 10H ;INVOKE BIOS CURSOR POSITIONING
ENDM
;
CLEAR MACRO
SUB CX,CX ;UPPER LEFT CORNER
MOV DX,184FH ;BOTTOM RIGHT CORNER
MOV BH,7 ;NORMAL ATTRIB FOR CLS
MOV AX,600H ;AH=6 SCROLL, AL=0